const SliderModel = require('../db/models/slider');

class SliderService {
    //获取轮播图数据
    async getSliderData () {
        return await SliderModel.findAll({
            where: { status: 1 },
            attributes: {
                exclude: ['imgUrl','href', 'createdAt', 'updatedAt']
            }
        });
    }
}

module.exports = new SliderService();